home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 26.zip / BS1 part 26 / Aztec C v5.2a disk 4.adf / incl52.lzh / math.h < prev    next >
C/C++ Source or Header  |  1991-05-22  |  1KB  |  64 lines

  1. /* Copyright Manx Software Systems, Inc. 1988.  All rights reserved */
  2.  
  3. #ifndef __MATH_H
  4. #define __MATH_H
  5.  
  6. double frexp(double, int *);
  7. double ldexp(double, int);
  8. double modf(double, double *);
  9. double cotan(double);
  10. double log10(double);
  11. double log(double);
  12. double pow(double, double);
  13. double sqrt(double);
  14. double fabs(double);
  15. double fmod(double, double);
  16. double sin(double);
  17. double cos(double);
  18. double tan(double);
  19. double exp(double);
  20. double floor(double);
  21. double ceil(double);
  22. double sinh(double);
  23. double cosh(double);
  24. double tanh(double);
  25. double asin(double);
  26. double acos(double);
  27. double atan(double);
  28. double atan2(double, double);
  29.  
  30. #ifdef    HUGE_VAL
  31. #undef    HUGE_VAL
  32. #endif
  33.  
  34. #ifdef _FLT_FFP    /* Motorola FFP format */
  35. #define HUGE_VAL    9.22337177E+17
  36. #else            /* IEEE format */
  37. #define HUGE_VAL    1.797693134862316E+308
  38. #endif
  39.  
  40. #if !__STDC__
  41.  
  42. #ifdef _FLT_FFP        /* Motorola FFP format */
  43. #define HUGE        HUGE_VAL
  44. #define LOGHUGE        (709.778)
  45. #define TINY_VAL    (5.42101070E-20)
  46. #define TINY        TINY_VAL
  47. #define LOGTINY        (-708.396)
  48. #else                /* IEEE format */
  49. #define HUGE        HUGE_VAL
  50. #define LOGHUGE        (709.778)
  51. #define TINY_VAL    (2.2e-308)
  52. #define TINY        TINY_VAL
  53. #define LOGTINY        (-708.396)
  54. #endif
  55.  
  56. void sran(long seed);
  57. double ran(void);
  58. double randl(double x);
  59. void ftoa(double number, char *buffer, int maxwidth, int mode);
  60. #define power(x,y) pow(x,y)
  61. #endif    /* !__STDC__ */
  62.  
  63. #endif
  64.